﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MT.Models.Location
{

    public class Location
    {
        /// <summary>
        /// Lat
        /// </summary>
        public double lat { get; set; }
        /// <summary>
        /// Lng
        /// </summary>
        public double lng { get; set; }
    }

    public class Ad_info
    {
        /// <summary>
        /// 中国
        /// </summary>
        public string nation { get; set; }
        /// <summary>
        /// 四川省
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 成都市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 武侯区
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// Adcode
        /// </summary>
        public int adcode { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 222.212.185.162
        /// </summary>
        public string ip { get; set; }
        /// <summary>
        /// Location
        /// </summary>
        public Location location { get; set; }
        /// <summary>
        /// Ad_info
        /// </summary>
        public Ad_info ad_info { get; set; }
    }

    public class LocationRoot
    {
        /// <summary>
        /// Status
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// query ok
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// Result
        /// </summary>
        public Result result { get; set; }
    }

}
